use plotly::{common::Title, Plot};

pub fn nb_fmt(plot: Plot) -> String {
    format!(
        "EVCXR_BEGIN_CONTENT application/vnd.plotly.v1+json\n{}\nEVCXR_END_CONTENT",
        plot.to_json()
    )
}

pub fn bold_title(title: &str) -> Title {
    format!("<b>{}</b>", title).as_str().into()
}
